package iscte.ai.kcgtd;

public class OccupiedBlocks extends CalendarBlocks{
	
	private String eventName;
	private String blockEventLocation;
	
	public OccupiedBlocks(KCGTDTime startHour, KCGTDTime endHour, String eventName, String blockEventLocation) {
		super(startHour, endHour);
		this.eventName = eventName;
		this.blockEventLocation = blockEventLocation;
	}

	public String getBlockEventLocation() {
		return blockEventLocation;
	}

	public String getEventName() {
		return eventName;
	}

	@Override
	public int compareTo(CalendarBlocks another) {
		if(getStartTime().isAfter(another.getStartTime()))
			return 1;
		else if(getStartTime().isBefore(another.getStartTime()))
			return -1;
		else
			return 0;
	}
	
}
